Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '][You and status = 'public' order by adddate limit 1) union (select title, ...' at line 1 in C:\D-Drive\vcasmo.com\php\class_Database.php:42
Stack trace:
#0 C:\D-Drive\vcasmo.com\php\class_Database.php(42): mysqli->query('(select title, ...')
#1 C:\D-Drive\vcasmo.com\php\vcasmo\presentation\Presentation.php(439): Database->queryObject('(select title, ...')
#2 C:\D-Drive\vcasmo.com\video_watch.php(329): Presentation->getPreivousNextPresentationFromUser('2571', '4177][You', false, false)
#3 {main}
thrown in C:\D-Drive\vcasmo.com\php\class_Database.php on line 42